package com.example.framework2002a.room;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao
public interface UserDao {
    @Insert()
    void insert(UserBean userBean);

    @Delete()
    void delete(UserBean userBean);

    @Update()
    void update(UserBean userBean);

    @Query(value = "select * from user")
    List<UserBean> query();

}
